﻿using System.Web;
using System.Web.Optimization;

namespace MvcApplication6
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));


            bundles.Add(new ScriptBundle("~/bundles/all").Include(
                       "~/Scripts/_references.js",
                       "~/Scripts/calendar.js",
                       "~/Scripts/jquery-1.8.3.js",
                       "~/Scripts/jquery-1.8.3-vsdoc.js",
                       "~/Scripts/jquery-1.8.3.min.js",
                       "~/Scripts/jquery.gallery.js",
                       "~/Scripts/jquery.tabify.js",
                       "~/Scripts/jquery.tabify.source.js",
                       "~/Scripts/jquery.unobtrusive-ajax.js",
                       "~/Scripts/jquery.unobtrusive-ajax.min.js",
                       "~/Scripts/jquery.validate-vsdoc.js",
                       "~/Scripts/jquery.validate.js",
                       "~/Scripts/jquery.validate.min.js",
                       "~/Scripts/jquery.validate.unobtrusive.js",
                       "~/Scripts/jquery.validate.unobtrusive.min.js",
                       "~/Scripts/knockout-2.1.0.debug.js",
                       "~/Scripts/knockout-2.1.0.js",
                       "~/Scripts/main.js",
                       "~/Scripts/modernizr.custom.53451.js",
                       "~/Scripts/modernizr-2.5.3.js"));

            bundles.Add(new ScriptBundle("~/bundles/demo").Include(
                    "~/Scripts/Scripts2/calendar.js",
                    "~/Scripts/Scripts2/jquery-ui-1.10.4.custom.js",
                    "~/Scripts/Scripts2/jquery-ui-1.10.4.custom.min.js",
                    "~/Scripts/Scripts2/jquery.gallery.js",
                    "~/Scripts/Scripts2/jquery-1.10.2.js",
                    "~/Scripts/Scripts2/jquery.tabify.js",
                    "~/Scripts/Scripts2/jquery.tabify.source.js",
                    "~/Scripts/Scripts2/main.js",
                    "~/Scripts/Scripts2/modernizr.custom.53451.js"));

            bundles.Add(new ScriptBundle("~/bundles/fancybox").Include(
                    "~/Content/fancybox/jquery.fancybox.js",
                    "~/Content/fancybox/jquery.fancybox-1.3.4.css",
                    "~/Content/fancybox/jquery.fancybox.pack.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/css/style.css",
                                                                "~/Content/css/jquery-ui.css",
                                                                "~/Content/css/gallery.css",
                                                                "~/Content/css/calendar.css"));

            bundles.Add(new ScriptBundle("~/js").Include(
              "~/Content/Scripts/jquery-{version}.js",
                //"~/Scripts/jquery-migrate-{version}.js",
              "~/Scripts/bootstrap.js",
              "~/Scripts/jquery.validate.js",
              "~/scripts/jquery.validate.unobtrusive.js",
              "~/Scripts/jquery.validate.unobtrusive-custom-for-bootstrap.js"
              ));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                       "~/Scripts/jquery.unobtrusive*"));
        }
    }
}